---
order: 2
function_title_template: '[language]''s [category].[function] in JavaScript'
human: Go
packageType: package
inspiration_urls:
  - '<a href="https://golang.org/pkg/strings/">Go strings documentation</a>'
  - '<a href="https://golang.org/src/strings/strings.go">Go strings source</a>'
  - >-
    <a href="https://golang.org/src/strings/example_test.go">Go strings examples
    source</a>
  - '<a href="https://gophersjs.com">GopherJS</a>'
function_description_template: >-
  Here’s what our current JavaScript equivalent to <a
  href="https://golang.org/pkg/[category]/#[function]">[language]'s
  [category].[function]</a> looks like.
warning: 'This file is auto generated by `npm run web:inject`, do not edit by hand'
type: language
layout: language
language: golang
title: Go packages  in JavaScript
---
